home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
snip9503
/
break.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-14
|
494b
|
30 lines
/*
** Set or determine the status of the DOS "SET BREAK=" command
*/
#include <dos.h>
#define BOOL(x) (!(!(x)))
/*
** Returns status of DOS "SET BREAK" command
*/
int isBreakOn(void)
{
union REGS regs;
regs.x.ax = 0x3300;
intdos(®s, ®s);
return (int)regs.h.dl;
}
void setBreak(int OnOff) /* Off = 0, On = 1 */
{
union REGS regs;
regs.x.ax = 0x3301;
regs.h.dl = OnOff;
intdos(®s, ®s);
}